/**
 * Copyright (c) 2008, Keisuke Inoue, Syracuse Unviersity
 * All rights reserved.
 *
 */
package edu.syr.iis.web.controller;

import java.beans.PropertyEditorSupport;

/**
 * @author kinoue
 *
 */
public class ConversationLabelPropertyEditor extends PropertyEditorSupport
{
    @Override
	public String getAsText()
    {
        return (String) getValue();
    }

        @Override
		public void setAsText(String text) throws IllegalArgumentException
    {
	if (text.length() >= 128) {
            throw new IllegalArgumentException("Label is too long: " + text);
        }
    }

    
}
